<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>N站——新闻发布成功</title>
    <!-- 标题栏logo -->
    <link rel="icon" href="../../image/nLogo.jpg" type="image/x-icon">
    <!-- 收藏夹里显示的logo -->
    <link rel="shortcut icon" href="../../image/nLogo.jpg" type="image/x-icon">
    <!-- layui样式 -->
    <link href="../../layui/css/layui.css" rel="stylesheet">
    <script src="../../layui/layui.js"></script>
    <script src="../../js/jquery.min.js"></script>
    <script src="../../js/echarts.js"></script>
</head>
<body style="background: #F0F0F0;">
<!--导航栏-->
<div class="layui-row layui-panel" style=" background: #222222;">
    <div class="layui-col-md2" style="padding: 10px; text-align: center;">
        <a href="../../index.html" style="color: white; font-weight: bolder; font-size: x-large;">N站</a>
    </div>
    <ul class="layui-nav layui-col-md6" lay-filter="" style="background: #222222;">
        <li class="layui-nav-item"><a href="../../index.html">首页</a></li>
        <li class="layui-nav-item"><a href="../home/homeNews.html">发现</a></li>
        <li class="layui-nav-item"><a href="../home/homePublisher.html">新闻方</a></li>
        <li class="layui-nav-item"><a href="../home/homeNewsType.html">新闻专栏</a></li>
        <li class="layui-nav-item"><a href="../home/homeSubscribe.html">我的订阅</a></li>
        <li class="layui-nav-item"><a href="">可能感兴趣</a></li>
    </ul>
    <ul class="layui-nav layui-col-md2" style=" background: #222222;">
        <li class="layui-nav-item">
            <a><img src="../../image/avatar.jpg" class="layui-nav-img">peng_YuJun</a>
            <dl class="layui-nav-child">
                <dd style="color: white; text-align: center; background: orange">硬币：0</dd>
                <dd><a href="../self/selfData.html">个人中心</a></dd>
                <dd><a href="../publish/publishNews.html">新闻管理</a></dd>
                <dd><a href="../publish/publishRequest.html">申请成为新闻作者</a></dd>
                <dd><a href="#">退出登录</a></dd>
            </dl>
        </li>
    </ul>
    <div class="layui-nav layui-col-md2" style=" background: #222222; display: flex;align-items: center; padding: 10px;">
        <button class="layui-btn layui-btn-sm" lay-event="register">注册</button>
        <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="login">登录</button>
    </div>
</div>
<!--页面主体-->
<div class="layui-row" style="margin-top: 16vh; display: flex;justify-content: center;">
    <div class="layui-panel layui-col-md6" style="display: flex; flex-direction: column; justify-content: center;align-items: center; margin: auto; padding: 30px;">
        <div style="display: flex; align-items: center; justify-content: left; width: 100%; margin-bottom: 30px;">
            <i class="layui-icon layui-icon-left" style="font-size: large"></i>
            <dd><a href="publishNews.html">新闻管理</a></dd>
        </div>
        <div style="text-align: center; margin-bottom: 30px;">
            <p style="font-size:xx-large;">发布成功，正在审核中</p>
            <img src="../../image/undraw_Online_test_re_kyfx.png" style="width: 320px;height: 200px;">
        </div>
        <div>
            <button class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary" onclick="seeNews( )">查看新闻</button>
            <button class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary" onclick="editNews( )">重新编辑</button>
            <button class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary" onclick="copyUrl( )">复制链接</button>
            <button class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary" onclick="writeNews()">再写一篇</button>
        </div>
    </div>
</div>
</body>
<script type="text/javascript">
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use(['util', 'layer','form','element'], function(){
        var element = layui.element
            ,util = layui.util;

        util.event('lay-event',{
            login : function (){
                window.location.href = "../user/userLogin.html";
            },
            register: function (){
                window.location.href = "../user/userRegister.html";
            }
        })
    });
    /**
     * 跳转到新闻的查看页面
     */
    function seeNews(newsId){
        window.location.href= "../newsContent.html";
    }

    /**
     * 跳转到写新闻的页面
     */
    function writeNews(){
        window.location.href="publishWrite.html";
    }

    /**
     * 跳转到编辑新闻的页面
     */
    function editNews(newsId){
        window.location.href="publishEdit.html";
    }

    /**
     * 复制链接
     */
    function copyUrl(newsId){
        navigator.clipboard.writeText('链接')
    }
</script>
</html>